package com.atm.thirdplt.common.core.domain.his;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * his科室字典实体
 *
 * @author atm
 */
@Document
@XStreamAlias("Row")
public class HisDeptDict implements Serializable {

    private static final long serialVersionUID = 1L;
    @XStreamAlias("DeptCode")
    private String deptCode;
    @XStreamAlias("SerialNo")
    private Integer serialNo;
    @XStreamAlias("DeptName")
    private String deptName;
    @XStreamAlias("InputCode")
    private String inputCode;

    private String deptAlias;

    public HisDeptDict() {
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode == null ? null : deptCode.trim();
    }

    public Integer getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(Integer serialNo) {
        this.serialNo = serialNo;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName == null ? null : deptName.trim();
    }

    public String getInputCode() {
        return inputCode;
    }

    public void setInputCode(String inputCode) {
        this.inputCode = inputCode == null ? null : inputCode.trim();
    }

    public String getDeptAlias() {
        return deptAlias;
    }

    public void setDeptAlias(String deptAlias) {
        this.deptAlias = deptAlias == null ? null : deptAlias.trim();
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (this == obj) {
            return true;
        }
        if (obj instanceof HisDeptDict) {
            HisDeptDict o = (HisDeptDict) obj;
            return this.deptCode == o.getDeptCode();
        }
        return false;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDeptCode() == null) ? 0 : getDeptCode().hashCode());
        return result;
    }
}
